TelegramProcessUpdate.run   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
c 0
b 0
f 0
rs 10
cc 1
1
import { dumpUpdate } from 'src/utils/dump';
2
import telegram from 'lib/telegram';
3
import Base from '../Base';
4
5
export default class TelegramProcessUpdate extends Base {
6
    async run(tgUpdate) {
7
        const update = dumpUpdate(tgUpdate);
8
9
        await telegram.processUpdate(update);
10
    }
11
}
12